package inheritance;

/**
 * This program demonstrates inheritance.
 */

public class Main {
    public static void main(String[] args) {
        Manager boss = new Manager("tengyft", 100000, 1989, 8, 25);
        boss.setBonus(30000);

        Employee[] staff = new Employee[3];

        staff[0] = boss;
        staff[1] = new Employee("one", 20000, 1989, 3, 1);
        staff[2] = new Employee("two", 30000, 1989, 4, 1);

        for (Employee e : staff) {
            System.out.println("name=" + e.getName() + ",salary=" + e.getSalary());
        }
    }
}
